package com.bianmin.Mapper;

import com.bianmin.Model.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UtilMapper {

    //图片检测开关
    @Select("select imageSecSwitch from all_switch")
    Integer queryImageSecSwitchStatus();

    //商品列表
    @Select("select * from goods")
    List<Goods> goodsList();

    //根据商品id查询商品
    @Select("select * from goods where id = #{id}")
    Goods selectGoodsById(@Param("id") String id);

}
